package com.ymttest.database.sqlwapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.core.tool.FormatUtil;
import com.ymt.database.SqlManager;
import com.ymttest.database.model.couponbatch;
import com.ymttest.database.model.couponconversionrecord;
import com.ymttest.utils.EnvSetup;

public class couponconversionbatchWapper {
	SqlManager manage;

    public couponconversionbatchWapper() {
        manage = new SqlManager("mysqlcoupon" + EnvSetup.getEnv());
    }
    
    public int setcouponbatchCode(Integer ConversionId,String batchCode)
    {
    	Map m=new HashMap<String,Object>();
    	m.put("ConversionId", ConversionId);
    	m.put("batchCode", batchCode);
    	 int result = manage
                 .update(
                         "com.ymttest.database.mapping.couponconversionbatchMapper.setcouponbatchCode",
                         m);
    	 manage.commit();
         return result;
    }
    
    public static void main(String[] args) {
//    	couponconversionbatchWapper test = new couponconversionbatchWapper();
//        System.out.print(FormatUtil.beanToGSONString(test.selectByBillName("自动化测试创建兑换码单据_0HYSyoij")));
    }
    
}
